package org.kl.bf.entity;

import java.sql.Timestamp;

import javax.persistence.MappedSuperclass;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 业务单据基类.
 * @author QJ
 * @date 2015年8月25日
 * 
 * 业务单据均需要有confirmFlag 确认状态字段，用于控制单据的编辑删除等
 */
@MappedSuperclass
public abstract class BusinessEntity extends AuditableEntity {
	
	private static final long serialVersionUID = 7125125377078629626L;
		
	protected String confirmMan;
	protected Integer confirmFlag=0;
	protected Timestamp confirmTime;
	
	
	public String getConfirmMan() {
		return confirmMan;
	}
	public void setConfirmMan(String confirmMan) {
		this.confirmMan = confirmMan;
	}
	public Integer getConfirmFlag() {
		return confirmFlag;
	}
	public void setConfirmFlag(Integer confirmFlag) {
		this.confirmFlag = confirmFlag;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	public Timestamp getConfirmTime() {
		return confirmTime;
	}
	public void setConfirmTime(Timestamp confirmTime) {
		this.confirmTime = confirmTime;
	}
	
}
